Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: build step cleanup #2926

Merged
merged 13 commits into from
Jul 11, 2024
Merged

refactor: build step cleanup #2926

merged 13 commits into from
Jul 11, 2024

Conversation

holic
Copy link
Member

@holic holic commented Jul 4, 2024

pulled out of #2923

  • changed configPath to rootDir everywhere, because we almost always want the project root dir and want to avoid using path.dirname in all the downstream tooling
  • moved store/world build steps into a single build script so they can reuse vars etc. and map more closely to the mud build command
  • renamed all-codegen to all-build because that's actually what it's doing

Copy link

changeset-bot bot commented Jul 4, 2024

⚠️ No Changeset found

Latest commit: 26f482b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

import { glob } from "glob";
import { World } from "../config/v2/output";

export async function findSolidityFiles({ rootDir, config }: { rootDir: string; config: World }) {
Copy link
Member Author

@holic holic Jul 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

surprised this hasn't come up before but downstream usages may need to exclude .t.sol and .s.sol

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah likely because we're all good about putting source in src but technically possible to have test files, etc. live in this dir as well (and I personally like colocating tests with the files they're testing)

@holic holic marked this pull request as ready for review July 4, 2024 13:52
@holic holic requested a review from alvrs as a code owner July 4, 2024 13:52
Copy link
Member

@alvrs alvrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • let's add a changeset for the changed build cli command
  • let's also quickly update this in the docs for this command (just one line): https://mud.dev/cli/tablegen
  • should we also change it for the worldgen command for consistency?

@holic
Copy link
Member Author

holic commented Jul 5, 2024

this doesn't change anything about the CLI commands (they still use --configPath), just the arg name/intent of the internal functions, and shouldn't impact users unless someone imported tablegen from @latticexyz/store/codegen (which feels less intentional)

worldgen hasn't been updated yet, will save this for when I start updating system interfaces

@holic holic merged commit f8363c2 into main Jul 11, 2024
13 checks passed
@holic holic deleted the holic/build-cleanup branch July 11, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants